#ifndef MYLINEWINDOWS_H
#define MYLINEWINDOWS_H
#include "qwt3d_surfaceplot.h"
#include "qwt3d_function.h"
#include "qwt3d_plot.h"
#include "qwt3d_enrichment_std.h"
#include "ui_mylinemainwindow.h"
#include <QUdpSocket>
#include <QDebug>
class DummyBase : public QMainWindow, protected Ui::MainWindow
{
public:
  DummyBase(QWidget* parent = 0)
    : QMainWindow(parent)
  {
  }
};
class mylinewindows: public DummyBase
{
    Q_OBJECT
public:
    mylinewindows(QWidget* parent = 0 );
    Qwt3D::SurfacePlot* plot;
    std::vector<Qwt3D::Line3D*> LineList;
    std::vector<int> LineList_num;
    void AddNewLine(int id);
    void JudgeNewLine(int id,Qwt3D::Triple point);//该函数调用AddPoint函数加入点
    void AddPoint(int num,Qwt3D::Triple point);//num代表加在第几条轨迹上，为LINELIST的索引
    void SetLineColor(int num);
    void UpdateDraw();
    void dealData();
    void resizeEvent(QResizeEvent * e);
    QUdpSocket *udpSocket;
};

#endif // MYLINEWINDOWS_H
